#include<stdio.h>
#include<stdlib.h>

int fun(int x){
    printf("\n%d\n",x&(-x));
    return x-(x&(-x));
}
int fun1(int x){
    printf("二进制数:");
    for(int i=31;i>=0;--i){
        if(i!=31&&(i+1)%8==0) printf(",");
        printf("%d",(x&(1<<i))==0?0:1);
    }
    printf("\n");
}
int main(){
    printf("请输入一个整数:\n");
    int x;
    scanf("%d",&x);
    printf("\n:::-->%d  \n",fun(x));
    fun1(x);
    return 0;
}